/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.moravian.grid;

import edu.moravian.entity.Entity;
import edu.moravian.math.Point2D;

/**
 *
 * @author szilagyi
 */
public class GridCell
{
    
    private Entity entityContained;
    private Point2D center;
    
    public GridCell(double xCenter, double yCenter)
    {
        this.center = new Point2D(xCenter, yCenter);
    }
    
    public Point2D getCenter()
    {
        return center;
    }
    
    public void setEntity(Entity entity)
    {
        this.entityContained = entity;
    }
    
    public boolean hasEntity()
    {
        return entityContained != null;
    }
    
    public Entity getEntity()
    {
        return entityContained;
    }
    
}
